0f24ab286266f6d1a09a2b4d7fc100c5140f74a8,src/main/java/org/apache/commons/pool2/impl/BaseGenericObjectPool.java,Evictor,run,#,999
Before Change
cancel();
return;
}
Thread.currentThread().setContextClassLoader(cl);
// Evict from the pool
try {
After Change
ClassLoader savedClassLoader =
Thread.currentThread().getContextClassLoader();
try {
if (factoryClassLoader != null) {
// Set the class loader for the factory
ClassLoader cl = factoryClassLoader.get();
if (cl == null) {
// The pool has been dereferenced and the class loader
// GC'd. Cancel this timer so the pool can be GC'd as
// well.
cancel();
return;
}
Thread.currentThread().setContextClassLoader(cl);
}
// Evict from the pool